//
//  Logger.h
//  AlianC
//
//  Created by fan on 2021/8/4.
//  Copyright © 2021 infobird. All rights reserved.
//

#import <Foundation/Foundation.h>


NS_ASSUME_NONNULL_BEGIN

@protocol ExternLogger <NSObject>
-(void)log:(NSString*)format,...;
@end

@interface Logger : NSObject
@property (nonatomic, weak) id<ExternLogger>delegate;

+(Logger *)shareInstance;
 
+ (void)setDefaultUncaughtExceptionHandler;
 
-(void)error:(NSString *)format,...;

-(void)infoWithTag:(NSString *)tag format:(NSString *)format,...;
 
-(void)debugWithTag:(NSString *)tag format:(NSString *)format,...;
#pragma mark -捕捉崩溃日志
void chUncaughtExceptionHandler(NSException *exception);
#pragma mark -signal处理
void SignalHandler(int signal);

@end

NS_ASSUME_NONNULL_END
